package user

import (
	"github.com/labstack/echo"
)

func UserRouter(app *echo.Echo) {

	app.GET("/user/get", func(c echo.Context) error {
		u := getAllUser()
		return c.JSON(200, u)
	})
	app.POST("/user/delete", func(c echo.Context) error {
		uid := c.FormValue("uid")
		deleteUser(uid)
		return c.JSON(200, "")
	})

}
